Class WeakConcurrentCollection<T>
An implementation of a weak concurrent set based on a System.Runtime.CompilerServices.ConditionalWeakTable%602
.
Assembly: Dalamud.dll
View Source
Declaration
public class WeakConcurrentCollection<T> : ICollection<T>, IEnumerable<T>, IEnumerable where T : class
Implements:
System.Collections.Generic.ICollection<<T>>
, System.Collections.Generic.IEnumerable<<T>>
, System.Collections.IEnumerable
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection%601
.
View Source
Declaration
public int Count { get; }
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection%601
is read-only.
View Source
Declaration
public bool IsReadOnly { get; }
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
Declaration
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<<T>>
: An enumerator that can be used to iterate through the collection.### Add(T)
Adds an item to the System.Collections.Generic.ICollection%601
.
View Source
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
<T> | item | The object to add to the System.Collections.Generic.ICollection%601 . |